<template>
  <div class="home-search-page">
    <div class="block">
<!--      <div class="login-block">-->
<!--        <div class="role-tab-block">-->
<!--          <div :class="loginTabActive===1?'active':''" @click="loginTabActive=1" class="role-tab-item">求职者</div>-->
<!--          <div :class="loginTabActive===2?'active':''" @click="loginTabActive=2" class="role-tab-item">企业</div>-->
<!--        </div>-->
<!--        <div class="form-block">-->
<!--          <div class="form-item">-->
<!--            <input class="form-ctrl phone" maxlength="30" type="text" placeholder="手机号" />-->
<!--          </div>-->
<!--          <div class="form-item">-->
<!--            <input class="form-ctrl code" maxlength="30" type="text" placeholder="短信验证码" />-->
<!--            <div class="get-code">获取验证码</div>-->
<!--          </div>-->
<!--          <div class="btn2 btn">登录</div>-->
<!--          <div class="btn3 btn">注册</div>-->
<!--        </div>-->
<!--      </div>-->
    </div>
  </div>
</template>

<script>
export default {
  name: "JobCareersTop",
  data(){
    return{
      loginTabActive:1
    }
  }
}
</script>

<style lang="scss" scoped>
  .home-search-page{
    height: 310px;
    width: 100%;
    background: url("~@/assets/images/job-careers-search-bg.jpg") no-repeat center;
    .block{
      width: $contentWidth;
      height: 100%;
      margin: 0 auto;
      padding: 10px 0;
      display: flex;
      flex-direction: row;
      justify-content: right;
      .login-block{
        background: #fff;
        border-radius: 8px;
        height: 100%;
        width: 330px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        .role-tab-block{
          display: flex;
          flex-direction: row;
          justify-content: center;
          .role-tab-item{
            padding: 0 10px;
            color: $darkGray;
            font-size: 16px;
            border-bottom: 2px solid rgba(0,0,0,0);
            padding-bottom: 5px;
            margin: 0 10px;
            cursor: pointer;
          }
          .role-tab-item.active{
            color: $black;
            font-size: 17px;
            font-weight: bold;
            border-bottom: 2px solid $orange;
          }
        }
        .form-block{
          width: 100%;
          display: flex;
          flex-direction: column;
          .form-item{
            margin-top: 15px;
            width: 100%;
            display: flex;
            flex-direction: row;
            align-items: center;
            border-radius: 30px;
            background: $lightGray;
            .form-ctrl{
              width: 100%;
              height: 40px;
              padding: 0 20px;
              background: none;
            }
            .form-ctrl.code{
              width: calc(100% - 90px);
            }
            .get-code{
              width: 100px;
              font-size: 13px;
              color: $orange;
              border-left: 1px solid $midGray;
              padding-left:10px;
              cursor: pointer;
            }
          }
          .btn{
            margin-top: 15px;
            height: 40px;
            width: 100%;
          }
        }
      }
    }
  }
</style>
